from django.db import models


class UserModel(models.Model):
    username = models.CharField(max_length=50, verbose_name="姓名")
    uaccount = models.CharField(max_length=100, verbose_name="用户账户")
    upwd = models.CharField(max_length=200, verbose_name="密码")
    uage = models.IntegerField(verbose_name="年龄")
    usex = models.CharField(max_length=5, verbose_name="性别")
    # createdate = models.Da

    class Meta:
        db_table = 'user'

    def __str__(self):
        return self.username


